package com.aegame.demo;

import android.app.Application;
import android.content.Context;
import android.content.res.Configuration;

import com.aaee.union.common.AESDK;


public class GameApplication extends Application {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        AESDK.attachBaseContext(this);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        AESDK.onCreate(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        AESDK.onTerminate(this);
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        AESDK.onConfigurationChanged(this, newConfig);
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
        AESDK.onLowMemory(this);
    }

    @Override
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
        AESDK.onTrimMemory(this, level);
    }
}
